<div class="gap"></div>
<div class="gap"></div>
<section class="form-step1">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-primary">
                    <div class="panel-heading">
                        <h3 class="panel-title"><?php echo Yii::t("UserModule.user", "Login"); ?></h3>
                    </div>
                    <div class="panel-body">
                        <div class="col-lg-10">
                            <?php
                            if (!isset($model))
                                $model = new UserLogin();

                            $this->pageTitle = Yii::app()->name . ' - ' . Yii::t("UserModule.user", "Login");
                            $this->breadcrumbs = array(
                                Yii::t("UserModule.user", "Login"),
                            );
                            ?>
                            <?php if (Yii::app()->user->hasFlash('loginMessage')): ?>

                                <div class="success">
                                    <?php echo Yii::app()->user->getFlash('loginMessage'); ?>
                                </div>

                            <?php endif; ?>
                            <p class="innerError">
                                <?php
                                echo Yii::t("UserModule.user", "Please fill out the following form with your login credentials:");
                                ?></p>
                            <div class="form-horizontal" role="form">
                                <?php echo CHtml::beginForm(); ?>
                                <p class="innerError note">
                                    <?php
                                    echo Yii::t("UserModule.user", 'Fields with <span class="required">*</span> are required.');
                                    ?>

                                <?php echo CHtml::errorSummary($model); ?>
                                    </p>

                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">Username<span class="red">*</span> : </label>

                                    <div class="col-sm-5">
                                        <?php echo CHtml::activeTextField($model, 'username', array('class' => 'form-control')) ?>

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="inputEmail3" class="col-sm-2 control-label">Password<span class="red">*</span> : </label>
                                    <div class="col-sm-5">
                                        <?php echo CHtml::activePasswordField($model, 'password', array('class' => 'form-control')) ?>

                                    </div>
                                </div>

                                <div class="form-group">
                                        <label for="inputEmail3" class="col-sm-2 control-label">&nbsp; </label>

                                    <div class="col-sm-5">
                                     <?php echo CHtml::submitButton(Yii::t("UserModule.user", "Login"),array('class'=>'read-more pull-left')); ?>

                                    </div>
                                    
                                </div>

                                <?php echo CHtml::endForm(); ?>
                            </div>
                            <?php
                            $form = new CForm(array(
                                'elements' => array(
                                    'username' => array(
                                        'type' => 'text',
                                        'maxlength' => 32,
                                    ),
                                    'password' => array(
                                        'type' => 'password',
                                        'maxlength' => 32,
                                    ),
                                    'rememberMe' => array(
                                        'type' => 'checkbox',
                                    )
                                ),
                                'buttons' => array(
                                    'login' => array(
                                        'type' => 'submit',
                                        'label' => 'Login',
                                    ),
                                ),
                                    ), $model);
                            ?>
                            <div class="gap"></div>
                            <div class="gap"></div>  

                        </div>
                        <div class="col-lg-2"></div>


                    </div>
                </div>
            </div>
        </div>

    </div>
</section>
<div class="gap"></div>
<div class="gap"></div>